{% load wiki_markup %}
<div id="{{project.slug}}" class="object">

    <div id="{{project.slug}}Header" class="objectHeader">
    <h2 class="objectTitle"><a href="{{project.get_absolute_url}}">{{ project.title }}</a></h2>
    <span id="{{project.slug}}Details" class="objectDetails">
    {% if project.projectupdate_set.latest.current_status %}
    Status: {{project.projectupdate_set.latest.current_status}} ({{project.projectupdate_set.latest.date_time}})
    {% endif %}
    </div>

    

    <div id="{{project.slug}}Content" class="objectContent">
    {{project.description|wiki_to_html}}
    </div>

        <div class="subObject">
        {% for update in project.projectupdate_set.all%}
            <div id="{{update.title}}" class="subObjectTitle collapse_head">
            <h4 class="subObjectDetails">Update on {{update.date_time}}: {{update.title}}</h3>
            </div>
            <div id="{{update.title}}" class="subObjectContent collapse_body">
            {{update.description|wiki_to_html}}
            </div>

        {% endfor %}
        </div>
    </div>
    
</div>
